package models

import "gorm.io/gorm"

type Rec struct {
	gorm.Model
	Title           string  `gorm:"type:varchar(50)" json:"title"`
	Content         string  `gorm:"type:text" json:"content"`
	Gang            string  `gorm:"type:varchar(50)" json:"gang"`
	Price           float64 `gorm:"type:decimal(10,2)" json:"price"`
	CollectionCount int     `gorm:"type:int" json:"collection_count"`
}

type Collection struct {
	gorm.Model
	RecId int `gorm:"type:int" json:"rec_id"`
}
